define({ "api": [
  {
    "type": "post",
    "url": "/heroes",
    "title": "1.5 添加英雄",
    "name": "addHeroes",
    "group": "heroes",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>英雄名字 必填.</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "age",
            "description": "<p>英雄年龄 必填.</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n     \"err_code\": 0,\n     \"message\": \"添加英雄成功\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routes/api.js",
    "groupTitle": "heroes"
  },
  {
    "type": "delete",
    "url": "/heroes/:id",
    "title": "1.4 根据id删除英雄",
    "name": "deleteHeroes",
    "group": "heroes",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "id",
            "description": "<p>英雄id 必填.</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n     \"err_code\": 0,\n     \"message\": \"英雄删除成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routes/api.js",
    "groupTitle": "heroes"
  },
  {
    "type": "get",
    "url": "/heroes",
    "title": "1.1 查询全部英雄",
    "name": "getHeroes",
    "group": "heroes",
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n       \"err_code\": 0,\n       \"message\": [\n           {\n               \"id\": 1,\n               \"name\": \"李白\",\n               \"age\": 18,\n               \"ctime\": \"2021-01-23 16:59:25\",\n               \"status\": 1\n           },\n           {\n               \"id\": 3,\n               \"name\": \"王昭君\",\n               \"age\": 18,\n               \"ctime\": \"2020-01-22 17:01:22\",\n               \"status\": 1\n           },\n           {\n               \"id\": 4,\n               \"name\": \"鲁班\",\n               \"age\": 7,\n               \"ctime\": \"2020-01-22 20:16:01\",\n               \"status\": 1\n           },\n           {\n               \"id\": 5,\n               \"name\": \"张飞\",\n               \"age\": 40,\n               \"ctime\": \"2020-01-22 17:01:22\",\n               \"status\": 1\n           }\n       ]\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routes/api.js",
    "groupTitle": "heroes"
  },
  {
    "type": "get",
    "url": "/heroes/:id",
    "title": "1.2 根据id查询英雄",
    "name": "getHeroesById",
    "group": "heroes",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "id",
            "description": "<p>英雄id 必填.</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n     \"err_code\": 0,\n     \"message\": [\n         {\n             \"id\": 4,\n             \"name\": \"鲁班\",\n             \"age\": 7,\n             \"ctime\": \"2020-01-22 20:16:01\",\n             \"status\": 1\n         }\n       ]\n     }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routes/api.js",
    "groupTitle": "heroes"
  },
  {
    "type": "put",
    "url": "/heroes/:id",
    "title": "1.3 根据id编辑英雄",
    "name": "updateHeroes",
    "group": "heroes",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "id",
            "description": "<p>英雄id 必填.</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "name",
            "description": "<p>英雄名字 必填.</p>"
          },
          {
            "group": "Parameter",
            "type": "Number",
            "optional": false,
            "field": "age",
            "description": "<p>英雄年龄 必填.</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n     \"err_code\": 0,\n     \"message\": \"英雄编辑成功\"\n    }",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "routes/api.js",
    "groupTitle": "heroes"
  }
] });
